package com.bw.kf.all2211a.adapter

import com.bumptech.glide.Glide
import com.bw.kf.all2211a.R
import com.bw.kf.all2211a.user.GlideUser
import com.bw.kf.mvvm.entity.IndexEntity
import com.bw.kf.mvvm.entity.Menu
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MenuAdapter: BaseQuickAdapter<Menu, BaseViewHolder>(R.layout.itme_menu) {
    override fun convert(holder: BaseViewHolder, item: Menu) {
            holder.setText(R.id.menu_tv,item.name)
        GlideUser.loadImage(context,holder.getView(R.id.menu_iv),item.pic)
    }
}